﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MyMvcStoreApplication.Models
{
    public class Album
    {
        
        public int ID { get; set; }
        
        [DisplayName("Nombre")]
        [Required]
        [StringLength(100)]
        public String Nombre { get; set; }
        
        [DisplayName("Veces que gustó")]
        [Required]
        public int Likes { get; set; }
        
        [DisplayName("URL tapa del album")]
        [StringLength(250)]
        public String TapaAlbumURL { get; set; }
        
        [DisplayName("Género")]
        [Required]
        public int GeneroId { get; set; }
        public virtual Genero Genero { get; set; }

        [DisplayName("Artista")]
        [Required]
        public int ArtistaId { get; set; }
        public virtual Artista Artista { get; set; }

    }
}